package tech.aistar.clothesspringboot.service;

import com.github.pagehelper.PageInfo;
import tech.aistar.clothesspringboot.pojo.Clothes;
import tech.aistar.clothesspringboot.pojo.ClothesStock;



import java.util.List;


public interface ClothesService {
    //获取所有的衣服信息
    public List<Clothes> getClothesList();
    //根据名字查询衣服信息
    public List<Clothes> getClothesByName(String name);
    //根据id查询衣服信息
    public Clothes getClothesById(Integer id);
    //根据id查询库存
    public List<ClothesStock> getStockById(Integer id);

    public PageInfo<Clothes> getClothesByPage(Integer pageNum, Integer pageSize);
}

